home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_09 / allison / char4.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-10  |  278 b   |  18 lines

  1. #include <stdio.h>
  2. main()
  3. {
  4.     unsigned char c1 = 100;
  5.     unsigned char c2 = 200;
  6.     unsigned char c3 = c1 + c2;
  7.  
  8.     printf("c1 == 0x%X\n",c1);
  9.     printf("c2 == 0x%X\n",c2);
  10.     printf("c3 == 0x%X\n",c3);
  11.     return 0;
  12. }
  13.  
  14. c1 == 0x64
  15. c2 == 0xC8
  16. c3 == 0x2C
  17.  
  18.